//
//  XBaseController.m
//  XWeibo-OC
//
//  Created by Apple on 15/10/26.
//  Copyright © 2015年 Apple. All rights reserved.
//

#import "XBaseController.h"



@interface XBaseController ()

@end

@implementation XBaseController

- (void)loadView
{
    self.isUserLogin ? [super loadView] : [self changeLoginView];
}


- (void)changeLoginView
{
    self.changedView = [[XVisitorView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.changedView.backgroundColor = [UIColor whiteColor];
    self.view = self.changedView;
    
}

//- (void)viewWillDisappear:(BOOL)animated
//{
//    [super viewWillDisappear:animated];
//    if (self.changedView)
//    {
//        [self.changedView.link invalidate];
//        self.changedView.link = nil;
//        self.changedView = nil;
//    }
//   }

@end
